
import java.util.Calendar;

/*
 * A very simple application illustrating how to use the interface.
 * Prints the names of all the drivers in the database.
 * @author John Sargeant
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        database.openBusDatabase();
        int[] driverIDs = DriverInfo.getDrivers();
        String[] driverNames = new String [driverIDs.length];
        for (int i=0; i<driverIDs.length; i++)
        {
            System.out.print("ID: " + driverIDs[i]);
            System.out.println("Number: " + DriverInfo.getNumber(driverIDs[i]));
            DriverInfo.setHoursThisWeek(driverIDs[i], 0);
            DriverInfo.setHoursThisYear(driverIDs[i], 0);
        }
        
        /*int routeNumber = 0;
        int[] routes = BusStopInfo.getRoutes();
        Calendar c = Calendar.getInstance();
        int[] services = TimetableInfo.getServices(routes[routeNumber], TimetableInfo.timetableKind(c.getTime()));
        int[] serviceTimes = TimetableInfo.getServiceTimes(routes[routeNumber], c.getTime(), 1);
        System.out.println("For route: " + routes[routeNumber]);
        for(int i = 0; i < serviceTimes.length; i++)
        {
            System.out.println(i + ".) " + serviceTimes[i]);
        }*/
    }

}
